
<!DOCTYPE html>
<html lang="zh-CN">
<head>

    <include file="public@head"/>
    <link rel="stylesheet" type="text/css" href="__INDEX__/css/public.css">
    <link rel="stylesheet" type="text/css" href="__INDEX__/css/contact.css">
</head>
<body>

<include file='public@header'/>

<include file='public@neiye'/>

<!--container-->
<div class="container">
    <div class="address">
        <span>您所在的位置：</span>
        <a href="/">首页</a>
        <div class="addressBox">
            <a href="">联系我们</a>
        </div>
    </div>

    <include file='public@left'/>

    <div class="containerRight">

        <h3 class="title">联系我们</h3>

        <div class="content">

            <div class="txt">
                {$page.post_content}
            </div>

            <div id="allmap" class="map" >

            </div>
            <script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=0QD0Ze9b1rP0nunq7QWUwYigFfGG1OxW"></script>
            <script type="text/javascript">
                // 百度地图API功能
                var map = new BMapGL.Map("allmap");
                var point = new BMapGL.Point(113.604593,34.520154);
                map.centerAndZoom(point, 15);

                var marker = new BMapGL.Marker(point);  // 创建标注
                map.addOverlay(marker);              // 将标注添加到地图中
                map.enableScrollWheelZoom(true);
                var opts = {
                    width : 200,     // 信息窗口宽度
                    height: 100,     // 信息窗口高度
                    title : "{$site_info.site_name} " , // 信息窗口标题
                    message:"{$site_info.site_address}"
                }
                var infoWindow = new BMapGL.InfoWindow("{$site_info.site_address}", opts);  // 创建信息窗口对象
                map.openInfoWindow(infoWindow, point);
                marker.addEventListener("click", function(){
                    map.openInfoWindow(infoWindow, point); //开启信息窗口
                });
            </script>
        </div>



    </div>
</div>
<!--container-->
<include file='public@footer'/>

</body>
</html>